%
%
%
function [  ] = output( field, fieldType, neighborhood, adjVertList, kTRESHOLD, kCOLOR_SLIDER, obj_ref, kTYPE )
outDir = '../../target/';
[path, id] = getPathAndId4DataType( kTYPE );
path = [outDir id fieldType];
featPoints = featurePoints( field, neighborhood, adjVertList, id, kTRESHOLD );
nFP = size( featPoints, 2 );
notEmpty = exportFP( featPoints, field, path, id);

colors = colorForField( field, kCOLOR_SLIDER );
pinkColor = [255 0 255];
for i = 1:nFP 
    if ( notEmpty )
        colors( featPoints(1, i), :) = pinkColor;
    end % if
end % FOR
outDir = '../../target/';
path = [outDir id fieldType '.ply'];
exportPLY( path, obj_ref.vertices, colors, obj_ref.faces, 0 );

end % function

